package licode.unisop.log.service.adapter.exception;

import licode.unisop.types.AuthConst;

/**
 * 定义日志模块的错误码
 * 日志模块的错误码开头为801
 *
 * @author WR
 */
public enum LogErrorCode {

    SUCCESS(0, "成功"),
    USER_DONT_EXIST(901000, "用户不存在"),
    USER_NOT_LOGIN(AuthConst.USER_NOT_LOGIN, AuthConst.USER_NOT_LOGIN_MSG),
    SYSTEM_BUSY(901999, "服务繁忙");

    private Integer code;
    private String message;

    LogErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}
